import service from '@/utils/request';

/**
 * 新增工作经历工作信息
 * @param data 
 * @returns 
 */
export function AddEmpOccupationalInfo(data: any) {
    return service({
        url: '/itf/employee/web/occupational/history',
        method: 'POST',
        data
    })

}


/**
 * 删除工作经历工作信息职位分配
 * @param data 
 * @returns 
 */
export function DeletedEmpOccupationalInfo(uuid: any) {
    return service({
        url: `/itf/employee/web/occupational/history/uuid/${uuid}`,
        method: 'DELETE',
    })

}



/**
 * 根据uuid修改工作经历信息
 * @param params 
 * @returns 
 */
export function PutEmpOccupationalInfoUpdate(data: any) {
    return service({
        url: '/itf/employee/web/occupational/history/uuid/' + data.uuid,
        method: 'put',
        data
    })

}


/**
 * 根据uuid查询工作经历详情信息
 * @param params 
 * @returns 
 */
export function GetEmpOccupationalInfoByUuid(uuid: any) {
    return service({
        url: `/itf/employee/web/occupational/history/uuid/${uuid}`,
        method: 'get',
    })
}


/**
 * 根据查询工作经历所有
 * @param params 
 * @returns 
 */
export function GetEmpOccupationalInfoAll(params: any) {
    return service({
        url: `/itf/employee/web/occupational/history`,
        method: 'get',
        params
    })
}